<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style type="text/css">
			*{
				padding: 0;
				margin: 0;
			}
			.box{
				border: 1px solid red;
				margin: 50px;
				width: 100px;
				height:50px;
				background-color:yellowgreen;
				/*transition: width 2s,height 2s,linear;   /*等价于下面*/
				
				transition-property:width,height;
				transition-duration: 2s;
				transition-timing-function: linear;   /*匀速过渡*/
				
				/*transition: all 2s linear 0s;   /*综合写法*/*/
			}
			.box:hover{
				width: 300px;
				height: 100px;
				background-color: pink;
			}
		</style>
	</head>
	<body>
		<div class="box"></div>
	</body>
</html>
